package com.seari.custody.enums;

import java.util.Objects;

/**
 * @author lxv1
 */
public enum MeetingType {
    ONLINE("1", "线上会议"),
    OFFLINE_INNER("2", "线下内部会议"),
    OFFLINE_OUTER("3", "线下外部会议"),
    OFFLINE_OUTER_NEW("4", "线下外部会议")
    ;

    MeetingType(String type, String description) {
        this.type = type;
        this.description = description;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    private String type;
    private String description;

    public static String getDesc(String type) {
        for (MeetingType value : values()) {

            if (Objects.equals(type, value.type)) {
                return value.description;
            }

        }
        return "";
    }
}
